package com.yuandian.middle.platform.enums;

/**
 * 说明：告警等级枚举类
 * @Author tianlr
 * @Date 2023/5/25 14:06
 */
public enum AlarmLevelEnum {
    INFO("1", "提示"),
    ORDINARY("2", "一般"),
    URGENT("3", "紧急"),
    MAJOR("4", "重大");

    private String item;
    private String itemValue;
    AlarmLevelEnum(String item, String itemValue){
        this.item = item;
        this.itemValue = itemValue;
    }

    public static String getItemValue(String item) {
        for (AlarmLevelEnum m : AlarmLevelEnum.values()) {
            if ((m.item).equals(item)) {
                return m.itemValue;
            }
        }
        return "";
    }
}
